<?php
/*
If you would like to edit this file, copy it to your current theme's directory and edit it there.
Theme My Login will always look in your theme's directory first, before using this default template.
*/
if (isset($_REQUEST['pending']) && $_REQUEST['pending'] == 'activation' && $_REQUEST['user_email'] && $_REQUEST['user_login']) {
	$register_links = $template->get_action_links(array( 'login' => false, 'lostpassword' => false));
	?>
	<div class="login" id="theme-my-login<?php $template->the_instance(); ?>">
		<ul class="login-reg-step">
		<li><?php _e('Send register email', 'theme-my-login');?></li>
		<li><?php _e('Complete registration information', 'theme-my-login');?></li>
		<li><?php _e('register success', 'theme-my-login');?></li>
		</ul>
		<form name="registerform" id="registerform<?php $template->the_instance(); ?>" action="<?php $template->the_action_url( 'register' ); ?>" method="post">
			<div class="msg-info1"><?php _e('Your registered email is:', 'theme-my-login');?><i class="i-reds"><?php echo $_REQUEST['user_email'];?></i></div>
			<?php if (!isset($_REQUEST['resend'])):?>
			<div class="msg-info2"><?php _e('Registered Mail has occurred successfully, log on to the mailbox, click on the link inside the email to complete the verification', 'theme-my-login'); ?></div>
			<?php else :?>
			<?php news_feed_new_user_activation_notification($_REQUEST['user_login'], $_REQUEST['user_email']);?>
			<div class="msg-info2"><?php _e('Having been re-send verification email', 'theme-my-login');?></div>
			<?php endif;?>
			<div class="msg-info3">
				<div class="msg-info1"><?php _e('Did not receive the activation email?', 'theme-my-login');?></div>
				<div class="msg-info-content">
				<div class="msg-p">1&nbsp;,&nbsp;&nbsp;<?php _e('Go to spam, spam directory look for this email', 'theme-my-login');?></div>
				<div class="msg-p">2&nbsp;,&nbsp;&nbsp;<a target="_blank" href="<?php echo add_query_arg(array('resend'=>'true'));?>"><?php _e('Resend verification email', 'theme-my-login');?></a></div>
				<div class="msg-p">3&nbsp;,&nbsp;&nbsp;<a target="_blank" href="<?php echo $register_links[0]['url'];?>"><?php _e('Reapply account', 'theme-my-login');?></a></div>
				</div>
			</div>
			
	
		</form>
		<?php /*$template->the_action_links( array( 'register' => false ) );*/ ?>
	</div>
	<?php 
} else {
?>
<div class="login" id="theme-my-login<?php $template->the_instance(); ?>">
	<?php $template->the_action_template_message( 'register' ); ?>
	<?php $template->the_errors(); ?>
	<ul class="login-reg-step">
	<li><?php _e('Send register email', 'theme-my-login');?></li>
	<li><?php _e('Complete registration information', 'theme-my-login');?></li>
	<li><?php _e('register success', 'theme-my-login');?></li>
	</ul>
	<form name="registerform" id="registerform<?php $template->the_instance(); ?>" action="<?php $template->the_action_url( 'register' ); ?>" method="post">
		<p>
			<label for="user_login<?php $template->the_instance(); ?>"><?php _e( 'Username' ); ?></label>
			<input type="text" name="user_login" id="user_login<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value( 'user_login' ); ?>" size="20" />
		</p>

		<p>
			<label for="user_email<?php $template->the_instance(); ?>"><?php _e( 'E-mail' ); ?></label>
			<input type="text" name="user_email" id="user_email<?php $template->the_instance(); ?>" class="input" value="<?php $template->the_posted_value( 'user_email' ); ?>" size="20" />
		</p>

		<?php do_action( 'register_form' ); ?>

		<p id="reg_passmail<?php $template->the_instance(); ?>"><?php /*echo apply_filters( 'tml_register_passmail_template_message', __( 'A password will be e-mailed to you.' ) );*/ ?></p>

		<p class="submit">
			<input type="submit" name="wp-submit" id="wp-submit-register<?php $template->the_instance(); ?>" value="<?php esc_attr_e( 'Register' ); ?>" />
			<input type="hidden" name="redirect_to" value="<?php $template->the_redirect_url( 'register' ); ?>" />
			<input type="hidden" name="instance" value="<?php $template->the_instance(); ?>" />
			<input type="hidden" name="action" value="register" />
		</p>
	</form>
	<?php /*$template->the_action_links( array( 'register' => false ) );*/ ?>
</div>
<?php }?>
